//
//  HMGroupCollectionViewCell.m
//  localLife
//
//  Created by Limonwei on 15/11/26.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "HMGroupCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@interface HMGroupCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation HMGroupCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

-(void)setModel:(HMGroup *)model{
    
    _model = model;
    
    _nameLabel.text = _model.title;
    
    [_imageView sd_setImageWithURL:[NSURL URLWithString:_model.cover]];
    
}

@end
